<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-Cache" />
<meta name="MobileOptimized" content="320">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<title>掌上温泉季</title>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<link href="images_yellow/main.css" rel="stylesheet" type="text/css" />
<link href="css/spring.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//有奖投票
function voteIt(voteItemId){
	var phone=$("#phone").val();
	if(phone==""||phone==null){
		$("#div_result").html("<font color='red'>请填写手机</font>");
		return;
	}
	$.get("votePhone.htm?voteItemId="+voteItemId+"&phone="+phone+"&app=01",function(result){
		if(result=="success"){
			$("#div_result").html("<font color='red'>投票成功</font>");
		}else if(result=="lot"){
			$("#div_result").html("<font color='red'>该号码投票次数过多</font>");
		}else{
			$("#div_result").html("<font color='red'>你已经投过票</font>");
		}
	});
}
function voteNow(voteId,voteTitle) {
	window.location.href="getVoteItemList.htm?voteId=" + voteId+"&voteTitle="+voteTitle;
}
</script>
</head>
<body>
<%@include file="../top.jsp"%>
		<div id="mainmenu">
			<span class="crumbs">
				<%@include file="../menu.jsp"%>
				&gt; <a href="vote.htm">爽投票</a>
				&gt; <a href="getVoteItemList.htm?voteId=${voteId }&voteTitle=${voteTitle }">${voteTitle }</a>
				&gt; ${voteItem.title }
			</span>
		</div>
		<div class="vote_item_detail_div">
			<div class="hot_detail_img"><img src="${voteItem.picUrl }" width="280" /></div>
			<div class="vote_item_detail_desc">简介:<span class="vote_item_detail_span">${voteItem.desc }</span></div>
			<div class="vote_item_detail_phone">请输入手机号码：<input type="text" id="phone"/></div>
			<div id="btnVoteDetail" class="vote_item_detail_button" onclick="voteIt('${voteItem.identifier}');" >有 奖 投 票</div>
			<div align="center" id="div_result" style="margin: auto auto;"></div>
		</div>
		<div style="clear: both;"></div>
	
	<%@include file="../footer.jsp"%>
</body>
</html>